python import list from py file

66

# In first .py file
mylist = ['this', 'that', 'theother']

# In second file
from variables import mylist

Comments

Submit
0 Comments